﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ClientUI
{
    public partial class ClientComponent : Component
    {
        public ClientComponent()
        {
            InitializeComponent();
            this.exit.Click += exit_Click;
        }

        void exit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        public ClientComponent(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }
    }
}
